package com.sn.shop.model;

import java.util.List;

/**
 * @auther sn
 * @date 2018/2/5
 * @description 商品种类
 */
public class Category{

    private int id;
    private int pid;
    private String name;
    private String label;
    private List<Category> children;

    public Category(int id, int pid, String name) {
        this.id = id;
        this.pid = pid;
        this.name = name;

    }

    public Category(int pid, String name) {
        this.pid = pid;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return name;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }
}
